/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.kamionowski.supreme.services.global.impl;

import java.util.List;
import javax.inject.Inject;
import org.kamionowski.supreme.persistence.dao.HostDAO;
import org.kamionowski.supreme.persistence.entity.Host;
import org.kamionowski.supreme.services.global.HostService;
import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.context.annotation.Scope;

/**
 *
 * @author soldier
 */
@org.springframework.stereotype.Service
@Scope(value = BeanDefinition.SCOPE_SINGLETON)
public class HostServiceImpl implements HostService{

    @Inject
    private HostDAO hostDAO;
    
    @Override
    public List<Host> getHosts() {
        return hostDAO.getAllHosts();
    }
    
}
